"""djangoProject URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include
from appAdminUseclassroom import views as viewsAdminUseclassroom
from appAdminUseClassroom_new import views as viewsAdminUseClassroom_new

from facedetect import views as viewsfacedetect  # lj

from appAdminUserManagement import views as viewsAdminUserManagement    #real environment
from appUserCenter import views as viewsUserCenter
from appFlowStatistics import views as viewsFlowStatistics

urlpatterns = [
    path('admin/', admin.site.urls),
    # path("", include("ajax.urls")),
    # path('user_center/', include(('appUserCenter.urls',"appUserCenter"))),
    path('user_center/',viewsUserCenter.user_center),
    path('pwd_change/',viewsUserCenter.pwd_change),
    # 迭代一 教室使用信息管理路径
    # path('admin_useInfo/', viewsAdminUseclassroom.admin_useInfo),  # 管理员管理教室使用，对教室使用信息进行查询、管理、统计的界面
    # path('update_useInfo/', viewsAdminUseclassroom.update_useInfo),
    # 迭代一教室使用信息管理补充
    path('admin_useInfo_new/', viewsAdminUseClassroom_new.admin_useInfo_new),  # 管理员管理教室使用，对教室使用信息进行查询、管理、统计的界面
    path('search_useInfo_new/', viewsAdminUseClassroom_new.search_useInfo_new),
    path('update_useInfo_new/', viewsAdminUseClassroom_new.update_useInfo_new),

    # 迭代一 教室基本信息管理路径
    path("classroom-basic-info/", include(("classroomBasicInfo.urls", "classroomBasicInfo"))),

    # 迭代一 教室预约管理
    path("", include("appAdminUseclassroom.urls")),
    # 迭代二 教室预约管理
    path("", include("appAdminReserve.urls")),

    # 迭代一 出勤管理
    path("teacher_attendance_index/", viewsfacedetect.index_attendence),
    path('upload/', viewsfacedetect.upload),
    path('get_class/',viewsfacedetect.get_class),

    # 迭代一 多用户管理
    path('admin_userManagement/',include('appAdminUserManagement.urls')),

    path('login/', viewsAdminUserManagement.myLogin),
    path('user/', viewsAdminUserManagement.user.as_view()),
    path('logout/', viewsAdminUserManagement.logout),
    # path('pwd_change/',viewsUserCenter.pwd_change),

    path('admin_basicInfo/', viewsAdminUserManagement.basicInfo),
    path('login_submit/', viewsAdminUserManagement.login_submit),

    # 迭代二空闲教室流量统计
    path('flowStatistics_index/', viewsFlowStatistics.flowStatistics_index),
    path('flowStatistics/', viewsFlowStatistics.flowStatistics),

    path("course-schedule/", include(("courseSchedule.urls", "courseSchedule"))),
]
